package com.yudaob2b.elong.controller.domestic.incr;

import com.yudaob2b.common.utils.DateUtil;
import com.yudaob2b.common.utils.RedisUtils;
import com.yudaob2b.elong.service.HttpStaticService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * 国内酒店-库存增量controller
 *
 * @author Kidd.Tan
 * @email 298023780@qq.com
 * @date 7/14/18 9:22 PM
 */
@RestController
@RequestMapping("/api/incr/inv")
public class ApiIncrInvController {
    private static Logger incrInvLogger = LoggerFactory.getLogger("incrInvLogger");

    @Autowired
    private RedisUtils redisUtils;

    @Autowired
    private HttpStaticService httpStaticService;

    @RequestMapping("/go")
    public void go() {
        incrInvLogger.info("启动艺龙国内酒店－库存增量，开始时间：{} ", DateUtil.format(new Date(), DateUtil.PATTERN_CLASSICAL));

        long start = System.currentTimeMillis();


        incrInvLogger.info("艺龙国内酒店－库存增量，当前时间：{}，一共耗时：{} ", DateUtil.format(new Date(), DateUtil.PATTERN_CLASSICAL), (System.currentTimeMillis() - start));
    }
}
